<template>
  <el-config-provider :locale="locale">
    <router-view />
    <SET />
  </el-config-provider>
</template>
<script lang="ts">
import zhCn from "element-plus/lib/locale/lang/zh-cn";
import { defineComponent, nextTick, onMounted } from 'vue'
import SET from "@/components/set/set.vue";
export default defineComponent({
  setup(props) {
    let theme = window.localStorage.getItem("theme");
    let locale = zhCn;
    theme && window.document.documentElement.setAttribute("data-ming", theme);
    return { locale }
  },
  components: { SET }
})
</script>

<style lang="scss">
* {
  margin: 0;
}

*::-webkit-scrollbar {
  display: none;
}
</style>
